//
//  DYCleanUpToolBar.h
//  PrivatePhoto
//
//  Created by PrivatePhoto Team on 2021.
//  Copyright © 2021年 PrivatePhoto Team. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DYCleanUpToolBar;
@class CACleanUpToolBarModel;

@protocol CACleanUpToolBarDelegate <NSObject>

- (void)cleanUpToolBar:(DYCleanUpToolBar *)toolBar buttonAction:(UIButton *)sender;

@end

@interface DYCleanUpToolBar : UIView

@property (nonatomic,weak) id<CACleanUpToolBarDelegate>delegate;
@property (weak, nonatomic) IBOutlet UIButton *deleteButton;
@property (strong, nonatomic) CACleanUpToolBarModel *model;

- (void)setData:(id)data delegate:(id)delegate;

+ (id)instanceView;

@end


#pragma mark - model

@interface CACleanUpToolBarModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,assign) BOOL isAllow;

+ (CACleanUpToolBarModel *)ittemModelWithTitle:(NSString *)title isAllow:(BOOL)isAllow;
    
@end
